<?php
/**
 * @package Joomla
 * @subpackage Jmonoslideshow
 * @copyright (C) 2010 - Matthieu BARBE - www.ccomca.com
 * @license GNU/GPL v2
 * 
 * Jmonoslideshow is a Joomla extension for Monoslideshow.
 *
 * Jmonoslideshow uses :
 * Monoslideshow (http://www.monoslideshow.com/)
 * Plupload (http://www.plupload.com/) by Moxicode Systems
 * json class by Michal Migurski, Matt Knapp, Brett Stimmerman
 * jquery a JavaScript Library (http://jquery.com/)
 * getid3 library (http://getid3.sourceforge.net/)
 * swfobject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file (http://code.google.com/p/swfobject/)
 * Chained Selects jQuery Plugin (http://www.appelsiini.net/2010/jquery-chained-selects)
 *
 * Jmonoslideshow is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$app = &JFactory::getApplication();
$template	= $app->getTemplate();
JHTML::stylesheet( 'jmonoslideshow.css', JMONOSLIDESHOW_MEDIA_CSS_ADMIN );

if (version_compare(PHP_VERSION, '5.0.0', '<')) {
	echo '<div class="alert">';
	echo JText::_( 'COM_JMONOSLIDESHOW_UPGRADE_PHP' ) . '<br />';
	echo '</div>';
}

?>


<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
			<table class="adminlist">
				<tr>
					<td>
						<div id="cpanel">
                        
                        <?php
						$option = JRequest::getVar('option');
						require_once JPATH_COMPONENT_ADMINISTRATOR.DS.'liveupdate'.DS.'liveupdate.php';
						$user		= JFactory::getUser();
						$canManage	= $user->authorise('core.admin', 'com_jmonoslideshow');

						$link = 'index.php?option='.$option.'&amp;view=medias';
						JmonoslideshowViewJmonoslideshow::quickiconButton( $link, 'icon-48-media.png', JText::_( 'COM_JMONOSLIDESHOW_MEDIAS' ) );
						
						$link = 'index.php?option=com_categories&view=categories&extension=com_jmonoslideshow';
						JmonoslideshowViewJmonoslideshow::quickiconButton( $link, 'icon-48-category.png', JText::_( 'COM_JMONOSLIDESHOW_CATEGORIES' ) );
						
						$link = 'index.php?option='.$option.'&amp;view=tags';
						JmonoslideshowViewJmonoslideshow::quickiconButton( $link, 'icon-48-tag.png', JText::_( 'COM_JMONOSLIDESHOW_TAGS' ) );
						
						$link = 'index.php?option='.$option.'&amp;view=slideshows';
						JmonoslideshowViewJmonoslideshow::quickiconButton( $link, 'icon-48-models.png', JText::_( 'COM_JMONOSLIDESHOW_MODELS' ) );
						
						$linkcheck = 'index.php?option='.$option.'&amp;view=check&tmpl=component';
						JmonoslideshowViewJmonoslideshow::quickiconButton( $linkcheck, 'icon-48-check.png', JText::_( 'COM_JMONOSLIDESHOW_CHECK' ), 1 );
						
						if ($canManage)
						{
							echo LiveUpdate::getIcon();
						}
						
						// TODO : add acl for Joomla 1.6 and more
						/*
						$link = 'index.php?option=com_config&controller=component&component=com_jmonoslideshow&path=';
						if ( $this->user->gid >= 25 )JmonoslideshowViewJmonoslideshow::quickiconButton( $link, 'config.png', JText::_( 'COM_JMONOSLIDESHOW_PARAMETERS' ), 1 );
						*/
						
						$params = &JComponentHelper::getParams( 'com_jmonoslideshow' );
						$linkeditor = $params->get( 'linkeditor', 'http://pixlr.com/editor/' );
						$link = "window.open('".$linkeditor."','','height=700,width=990,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes'); return false;";
						JmonoslideshowViewJmonoslideshow::quickiconButton( $link, 'edit-image.png', JText::_( 'COM_JMONOSLIDESHOW_EDIT_IMAGES' ), 2 );
						
						$linkhelp = $params->get( 'linkhelp', 'http://jmonoslideshow.com/support/help' );
						JmonoslideshowViewJmonoslideshow::quickiconButton( $linkhelp, 'icon-48-help.png', JText::_( 'COM_JMONOSLIDESHOW_HELP' ), 1 );
						
						$link = 'index.php?option='.$option.'&amp;view=about&tmpl=component';
						JmonoslideshowViewJmonoslideshow::quickiconButton( $link, 'icon-48-about.png', JText::_( 'COM_JMONOSLIDESHOW_ABOUT' ), 1 );
						
						?>
                        
                        
                        	</div>
					</td>
				</tr>
			</table>
			</td>
            
            


</table>
			
			

            
            </td>
            </tr>
            </table>


